package org.sang.controller;

import org.sang.bean.Video;
import org.sang.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class VideoController {

    @Autowired
    VideoService videoService;

    @RequestMapping(value = "/member/vedio", method = RequestMethod.GET)
    public List<Video> getAllVideo() {
        return videoService.getAll();
    }
}
